//
//  NameView.m
//  ITHome
//
//  Created by lanou3g on 15/7/14.
//  Copyright (c) 2015年 YAX. All rights reserved.
//

#import "NameView.h"

@implementation NameView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // 用户名
        self.nameTextField = [[UITextField alloc] initWithFrame:CGRectMake(0, 64, kScreenWidth, 40)];
        self.nameTextField.borderStyle = UITextBorderStyleLine;
        self.nameTextField.font = [UIFont systemFontOfSize:15];
        [self addSubview:_nameTextField];
        
        // 统计
        self.countLabel = [[UILabel alloc]initWithFrame:CGRectMake(kScreenWidth - 60, _nameTextField.height + _nameTextField.y + 5, 50, 30)];
        self.countLabel.font = [UIFont systemFontOfSize:15];
        self.countLabel.textColor = [UIColor grayColor];
        self.countLabel.text = @"0/15";
        
        [self addSubview:_countLabel];
    }
    return self;
}

@end
